import ProxyInterface from '../proxy-interface';
import {CommentReplyModel} from '@pkpm/pkpm-types';

class CommentReplyProxy implements ProxyInterface<CommentReplyModel> {
    private reply = new CommentReplyModel();

    constructor(responseData) {
        let data = responseData.data || responseData;
        Object.assign<CommentReplyModel, any>(this.reply, data);
    }

    getModel(): CommentReplyModel {
        return this.reply;
    }
}

export {CommentReplyProxy};
